package com.sghj.construction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author zk
 * @version 1.0
 * @date 2024-7-15 16:15
 * @description
 */
@Data
public class PlanQuery {

    @TableId(value = "construction_site_id", type = IdType.AUTO)
    @ApiModelProperty(value = "施工id")
    private Integer constructionSiteId;

    @ApiModelProperty(value = "日计划号")
    @TableId(value = "day_plan_number")
    private Integer dayPlanNumber;

    @ApiModelProperty(value = "线别")
    @TableId(value = "line_type")
    private String lineType;

    @ApiModelProperty(value = "地点")
    @TableId(value = "location_place")
    private String locationPlace;

    @ApiModelProperty(value = "施工项目")
    @TableId(value = "construction_site_name")
    private String constructionSiteName;

    @ApiModelProperty(value = "查询起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date queryStartTime;

    @ApiModelProperty(value = "查询结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date queryEndTime;

    @ApiModelProperty(value = "盯控人")
    private String monitoringPersonnel;

    @ApiModelProperty(value = "盯控人联系方式")
    private String monitoringPhone;

    @ApiModelProperty(value = "致电状态（0待确认，1已确认，2已委托，3未确认）")
    @TableId(value = "call_status")
    private List<Integer> callStatus;

    @ApiModelProperty(value = "回电状态（0未回，1已完成，2计划延期，3计划取消，4已逾期）")
    @TableId(value = "call_back_status")
    private List<Integer> callBackStatus;

    private Long current;

    private Long limit;
}
